DisplayCutoutCompat
Creates a DisplayCutout instance.
Parameters
the insets from each edge which avoid the display cutout as returned by getSafeInsetTop etc.
the bounding rects of the display cutouts as returned by getBoundingRects ()}.
Creates a DisplayCutout instance.
Parameters
the insets from each edge which avoid the display cutout as returned by getSafeInsetTop etc.
the left bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).
the top bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).
the right bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).
the bottom bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).
the insets for the curved areas in waterfall display.
Creates a DisplayCutout instance.
Parameters
the insets from each edge which avoid the display cutout as returned by getSafeInsetTop etc.
the left bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).
the top bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).
the right bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).
the bottom bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).
the insets for the curved areas in waterfall display.
the path of the display cutout. Specifying a path with this constructor is only supported on API 33 and above, even though a real DisplayCutout can have a cutout path on API 31 and above. On API 32 and below, this path is ignored.